<?php 
/* SVN FILE: $Id$ */
/* Role Test cases generated on: 2009-08-25 11:08:05 : 1251237185*/
App::import('Model', 'Role');

class RoleTestCase extends CakeTestCase {
	var $Role = null;
	var $fixtures = array('app.role');

	function startTest() {
		$this->Role =& ClassRegistry::init('Role');
	}

	function testRoleInstance() {
		$this->assertTrue(is_a($this->Role, 'Role'));
	}

	function testRoleFind() {
		$this->Role->recursive = -1;
		$results = $this->Role->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Role' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>